package com.wxj.bank.api.service.impl;

import com.wxj.bank.api.service.IProductBusinessService;
import com.wxj.bank.storage.model.Product;
import com.wxj.bank.storage.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author shengtao
 * @Description:
 * @date 2019/02/20 17:16
 */
@Service
public class ProductBusinessServiceImpl implements IProductBusinessService {

    @Autowired
    private IProductService productService;

    @Override
    public Product add(Product product) {
        return productService.save(product);
    }
}
